package com.ganmiao.server.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ganmiao.entity.BaseColumns;
import com.ganmiao.server.sys.validated.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * (Customer)实体类
 *
 * @author makejava
 * @since 2024-04-01 18:08:40
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("客服信息")
@TableName(value = "customer")
public class Customer extends BaseColumns implements Serializable {
    private static final long serialVersionUID = 615619058032639915L;
    /**
     * 主键ID
     */
    /**
     * 用户地址主键ID
     */
    @TableId(type = IdType.AUTO)
    @NotNull(groups = Update.class, message = "用户ID不能为空")
    @ApiModelProperty("id")
    private Integer id;
    /**
     * 名称
     */
    @ApiModelProperty("名称")
    private String name;
    /**
     * 电话
     */
    @ApiModelProperty("电话")
    private String phone;
    /**
     * 状态
     */
    @ApiModelProperty("状态")
    private String status;

}

